import request from '@/utils/request'

// export function reqLogin(data) {
//   return request({
//     url: '/sys/login',
//     method: 'post',
//     data
//   })
// }

export const reqLogin = data => request({
  method: 'post',
  url: '/sys/login',
  data
})

export const reqGetUserInfo = () => request({
  method: 'post',
  url: '/sys/profile'
})

export const reqGetUserDetailById = id => request({
  method: 'get',
  url: `/sys/user/${id}`
})
